﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XiangzhenList.aspx.cs" Inherits="Admin.SysConfig.XiangzhenList" %>

<%@ Register Src="~/UserControls/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>乡镇列表</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
</head>
<body id="wallet">
    <div class="warp">
        <div class="topnav">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>乡镇管理</span></a></li>
                <%if (HasPower("XiangzhenAdd.aspx"))
                  { %>
                <li><a href="XiangzhenAdd.aspx"><span>乡镇登记</span></a></li><%} %>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>乡镇列表</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <form id="searchForm" name="searchForm" action="XiangzhenList.aspx">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01">
                <tr>
                    <td style="padding-top: 0; padding-left: 25px;" width="200" height="34" align="left"
                        valign="middle" bgcolor="#F3FBFE">
                        乡镇名称：<input type="text" name="txtName" id="txtName" value="<%=name %>" maxlength="20" />
                    </td>
                    <td style="padding-top: 0; padding-left: 15px;" width="200" height="34" align="left"
                        valign="middle" bgcolor="#F3FBFE">
                        代码：<input type="text" name="txtCode" id="txtCode" value="<%=code %>"
                            maxlength="25" />
                    </td>
                    <td style="padding-top: 0; padding-right: 20px;" valign="middle" align="right" bgcolor="#F3FBFE">
                        <div class="pl10">
                            <input name="imageField" id="Button1" type="submit" value="搜 索" /></div>
                    </td>
                </tr>
            </table>
            </form>
            <table width="676" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="150" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                代码
                            </th>
                            <th width="150" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                乡镇名称
                            </th>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                修改
                            </th>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                删除
                            </th>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("Code")%>
                            </td>
                            <td align="center">
                                <%#Eval("Name") %>
                            </td>
                            <td align="center">
                                <a href='XiangzhenModify.aspx?ID=<%#Eval("ID") %>'>
                                    <img src="/Admin/Images/bluestyle/edit.gif" alt="修改" width="15" height="15" border="0" /></a>
                            </td>
                            <td align="center">
                                <a href='?action=stop&ID=<%#Eval("ID") %>&pageurl=<%=Server.UrlEncode(pageUrl) %>'
                                    onclick="return window.confirm('确认删除该乡镇吗？');">
                                    <img src="/Admin/Images/bluestyle/icodelb.gif" alt="删除" width="11" height="13" border="0" /></a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div style="text-align: right;">
            <form runat="server" id="pageForm24">
            <uc1:PageControl ID="pageCountrol" runat="server" />
            </form>
        </div>
    </div>
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
        });
    </script>
</body>
</html>